﻿using System;
using Tools;

namespace UtilsTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Point pointA = new Point(9, 6); 
            Point pointB = new Point(-1, 5);
            Point pointC = new Point(-2, 1);
            Point pointD = new Point(4, 1);
            //1.计算延长点或收缩点；
            Tools.Math.Extend_or_Contract(pointA, pointB,4);
            //2.计算平移点；
            Tools.Math.Offset(pointA, -20);
            //3.计算旋转点
            Tools.Math.Rotation(pointA, pointB,4,30);
            //4.计算法线向量；
            Tools.Math.NormalVector(pointA, pointB, pointC);
            //5.计算交点
            Tools.Math.VectorIntersection(pointA, pointB, pointC, pointD);
            //6.计算一个点和圆的切点
            Tools.Math.TangentPoint(pointA, pointB, 8);
            //7.计算向量AB和圆的交点
            Tools.Math.Intersection(pointA, pointB, pointC, 2);
            //8.计算点和圆的方向角
            Tools.Math.DirectionAngle(pointA, pointB, 2);

        }
    }
}
